<template>
  <view class="">
    <view class="nav_each">
      <view
        class="nav_view"
        v-for="(item, index) in navList"
        @click="navClick(item.path, index)"
        :key="index"
      >
        <image class="nav_img" :src="item.src1" mode=""></image>
        <text class="nav_text">{{ item.label }}</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      navList: [
        {
          src1: "/static/risk/a1.png",
          label: "年审率",
          path: "./securityRisk/annual",
        },
        {
          src1: "/static/risk/a2.png",
          label: "交通执法处罚率",
          path: "./securityRisk/penaltyRate",
        },
        {
          src1: "/static/risk/a3.png",
          label: "电子运单使用率",
          path: "./securityRisk/usageRate",
        },
        {
          src1: "/static/risk/a4.png",
          label: "驾驶员积分率",
          path: "./securityRisk/integrationRate",
        },
        {
          src1: "/static/risk/a5.png",
          label: "车辆上线率",
          path: "./securityRisk/enrollmentRate",
        },
        {
          src1: "/static/risk/a6.png",
          label: "车辆轨迹完整率",
          path: "./securityRisk/fullRate",
        },
        {
          src1: "/static/risk/a7.png",
          label: "车辆通行与运单匹配率",
          path: "./securityRisk/waybillMatchingRate",
        },
        {
          src1: "/static/risk/a8.png",
          label: "车辆通行与轨迹匹配率",
          path: "./securityRisk/trackMatchingRate",
        },
      ],
    };
  },
  onLoad() {},
  mounted() {},
  methods: {
    // 导航跳转
    navClick(path, index) {
      this.$goBack(path, 2);
    },
  },
};
</script>

<style lang="scss" scoped>
// 首页导航下的图片
.nav_each {
  // display: flex;
  // justify-content: space-evenly;
  // flex-wrap: wrap;
  margin: 10px 0;

  .nav_view {
    width: 32%;
    text-align: center;
    display: inline-block;
    margin: 10px 0;
    // display: flex;
    // justify-content: center;
    // border: 1px red solid;

    .nav_img {
      width: 110rpx;
      height: 110rpx;
    }

    .nav_text {
      display: block;
      text-align: center;
      font-size: 14px;
      margin: 0 0 5px 0;
    }
  }
}
</style>
